SelectedImageIndex Property
Description
[Deprecated] Replaced by GetSelectedImageIndex method and SetSelectedImageIndex method.
Returns or sets the index of the selected image.
ActiveX Edition | Plug-in Edition | Mac Edition |
---|---|---|
Since V6.0 | Since V6.0 | Since V6.4 |
Data type
Short
Syntax
ObjectName. SelectedImageIndex(int SelectedIndex)
Remarks
This property is invalid when the view mode is set to -1 by -1 or 1 by 1.
In Dynamic Webcam Plug-in, GetSelectedImageIndex is used to get the image index, while SetSelectedImageIndex is used to set the index of the selected image.
See also
SetViewMode method, SelectedImagesCount property, SaveSelectedImagesToBytes(), AllowMultiSelect property
Sample
Javascript Sample:
<script language="javascript" type="text/javascript"> Webcam = document.getElementById("iDynamicWebcam");//iDynamicWebcam is the id of the Dynamic Webcam on the page (An object or an embed). Webcam.SelectedImagesCount = 2; Webcam.SelectedImageIndex(0) = 4;// add put_ or set_ prefix Webcam.SelectedImageIndex(1) = 3; var size = Webcam.GetSelectedImagesSize(IMAGE_TIFF); Array ary = new Array(size); Webcam.SaveSelectedImagesToBytes(size, ary); </script >
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.